package service.Impl;

import dao.RentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import pojo.Rent;
import service.RentService;

import java.util.List;

public class RentServiceImpl implements RentService {

    @Autowired
    private RentMapper rentMapper;
    //查询
    @Override
    public List<Rent> list() {
        List list = rentMapper.list();
        return list;
    }
    //修改
    @Override
    public int update(int id) {
        return rentMapper.update(id);
    }
    //指定查询
    @Override
    public List<Rent> rentlist(String carNum) {
        return rentMapper.findlist(carNum);
    }
}
